package com.wiki.gds.user.facade.sys.api;

import com.wiki.gds.user.facade.sys.hystrix.ResouceApiFallbackFactory;
import com.wiki.gds.user.facade.sys.vo.vue.MenuVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "gds-user-provider",path = ResourceApi.mapping,fallbackFactory = ResouceApiFallbackFactory.class)
public interface ResourceApi {

    static String mapping="/api/resource";

    @PostMapping
    List<Map> findUserResourceByUid(Long uid);
    @PostMapping
    List<MenuVo> getMenu(Long uid);
}
